package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.FriendRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FriendRelationMapper {
    int insert(FriendRelation record);

    List<FriendRelation> selectAll();

    FriendRelation selectByRelation(FriendRelation friendRelation);

    void insertUserRelation(FriendRelation friendRelation);

    void insertFriendRelation(FriendRelation friendRelation);

    void updateFriendRelation(@Param("id") Long id, @Param("userId") Long userId);

}